﻿@inherits BaseDataBackground

<CascadingValue Value="this" IsFixed="true">
    @ChildContent
</CascadingValue>

@code {
    protected override IDictionary<string, object> LoadSetting()
    {
        IDictionary<string, object>? setting = null;
        if (Base is DataZoom component)
        {
            component.SetSelectedDataBackground((selectedDataBackground) =>
            {
                setting = selectedDataBackground;
            });
        }
        return setting ?? new Dictionary<string, object>();
    }
}
